
<div class="userbox">
  <h2>我的订单</h2>
  <div class="left left0 width100"> {{foreach from=$order_list item=list key=key}}
    <table class="order">
      <caption class="user_tro">
        订单号: <span class="order_colo">{{$list.order_sn}}</span> 时间: <span class="order_colo">{{$list.add_time}}</span> 状态: {{if $list.pay_status==2}}<span class="green order_colo">交易成功</span>{{else}}<span class="red order_colo">交易失败</span> {{/if}}</span>
      </caption>
      {{foreach from=$list.order_goods item=goods key=g_key}}
      <tr class="user_trs">
        <td class="width15" ><a href="goods.php?id={{$goods.goods_id}}" title="{{$goods.goods_name}}"><img src="{{$goods.goods_thumb}}"/></a></td>
        <td class="width22" width="40%"><a href="goods.php?id={{$goods.goods_id}}" title="{{$goods.goods_name}}">{{$goods.goods_name}}</a>
          售价 : <span class="red">{{$list.order_amountd}}</span> 青币 </td>
        <td class="width30">
         {{if $list.review_id}}
        <div class="alert alert-warning pull-left"  style="margin:0"> {{$score =$list.order_review.score }} <strong> {{if $score==3}}<span class="text-success">好评</span>{{else if $score==2}}<span class="text-warning">中评</span>{{else}}<span class="text-danger">差评
</span>{{/if}} </strong> {{$list.order_review.content}} </div>
        {{/if}}
        </td>
       
       
        <td class="width26" >
         {{if $list.pay_status==2}} 
         <a class="btn btn-success f_left" href="main.php?act=download&goods_id={{$goods.goods_id}}&o_id={{$list.order_id}}" target="_blank"/>下载</a> 
          {{if !$list.review_id}}
          <a class="btn btn-warning f_left" onclick="Main.popupBox('main.php?act=order_review&no_style=1&o_id={{$list.order_id}}&goods_id={{$goods.goods_id}}')">追加评价</a> 
          {{else}}
          <a class="btn btn-danger f_left" onclick="Main.popupBox('main.php?act=order_review&no_style=1&o_id={{$list.order_id}}&goods_id={{$goods.goods_id}}&r_id={{$list.review_id}}')">修改评价</a>
          {{/if}}
          
          {{/if}} </td>
      </tr>
    </table>
    {{/foreach}}
    
    {{/foreach}} </div>
  {{include file="../pager.htm"}} 
  <!--right end--> 
  
</div>
